<?php
namespace api\know\validate;

use think\Validate;

class WxUserValidate extends Validate
{
    protected $rule = [
        'code' => 'require',
	    'userInfo' => 'require'
    ];
    
    protected $message = [
        'code.require' => 'code不能为空',
	    'userInfo.require' => '用户信息不能为空',
    ];

    protected $scene = [
        'login' => [ 'code' , 'userInfo' ],
    ];
}